package com.bdqn.qnnews.search.service;

import com.bdqn.qnnews.common.base.PageResult;
import com.bdqn.qnnews.search.entity.AppInfoArticle;
import com.bdqn.qnnews.search.vo.UserSearchReqVo;
import com.bdqn.qnnews.search.vo.UserSearchRespVo;

import java.util.ArrayList;

/**
 * @author xlzhang
 * @date 2024/1/9 11:45
 */
public interface ApArticleSearchService {

    /**
     * app端搜索接口
     * @param userSearchReqVo 参数
     * @return
     */
    PageResult<ArrayList<UserSearchRespVo>> search(UserSearchReqVo userSearchReqVo);

    /**
     * 添加索引文章
     * @param article 文章索引信息
     */
    void saveAndUpdateArticle(AppInfoArticle article);

    /**
     * 删除索引文章
     * @param articleId 要删除的文章索引id
     */
    void deleteArticle(String articleId);
}
